package com.aplink.dellcommercial.network;

import android.content.Intent;
import android.net.ConnectivityManager;

import com.aplink.dellcommercial.configuration.DellController;

public class NetworkUtil {
    public static void checkConnect( Intent intent ) {
        final boolean isLostConnection = intent.getBooleanExtra(
                ConnectivityManager.EXTRA_NO_CONNECTIVITY, false );
        if ( isLostConnection ) {
            DellController.setOnline( false );
        } else {
            DellController.setOnline( true );
        }
    }
}
